﻿namespace Monkey.Warrenty.EntityModel
{
    public partial class WarrantyTicketView
    {
        public string CreatedTimeString { get; set; }
        public string ReceivedFromName { get; set; }
        public string DealerEmployeeName { get; set; }
        public string Indicator
        {
            get
            {
                if (DaysLeft.HasValue)
                {
                    if (DaysLeft <= 0)
                        return "red";
                    if (DaysLeft > 0 && DaysLeft <= 2)
                        return "yellow";
                }
                return "green";
            }
        }
    }
}
